package com.zoo.diannaopeijian.common.page;

import com.github.pagehelper.PageHelper;

/**
 * Created by zx583 on 2018-01-14.
 */
public class Page {
    private Integer page = 1;
    private Integer rows = 10;

    public Page() {
        super();
    }

    public Page(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public void onPage() {
        PageHelper.startPage(page, rows);
    }
}
